package cvut.cz.via.android;


import android.app.Activity;
import android.os.Bundle;
import android.os.StrictMode;
import android.view.View;
import android.widget.Button;

public class LoginFailedActivity extends Activity {
	
	private Button againButton;
	
	public void onCreate(Bundle savedInstanceState) {
		StrictMode.ThreadPolicy policy = new StrictMode.ThreadPolicy.Builder().permitAll().build();
    	StrictMode.setThreadPolicy(policy);
        super.onCreate(savedInstanceState);
        setContentView(R.layout.login_failed_activity);
        setUpViews();	
    }
	
	private void setUpViews() {
		
		againButton = (Button) findViewById(R.id.login_failed_activity_try_again_button);
		
		againButton.setOnClickListener(new View.OnClickListener() {			
			public void onClick(View v) {
				again();
			}
		});
	}
	
	protected void again() {
		finish();
	}

}
